package com.qf.lanzhou.blog.api.service.impl;

import com.qf.lanzhou.blog.api.dao.Impl.ShowUsersDaoimpl;
import com.qf.lanzhou.blog.api.dao.ShowUsersDao;
import com.qf.lanzhou.blog.api.pojo.entity.User;
import com.qf.lanzhou.blog.api.service.ShowUsersService;

import java.util.List;

/**
 * @Author jian
 * @Date 2020/12/17 16:02
 * @JDK 1.8
 * @Version 1.0
 */
public class ShowUsersServiceimpl implements ShowUsersService {
    private ShowUsersDao showUsersDao=new ShowUsersDaoimpl();
    @Override
    public List<User> checkUser(Long id) {
        return showUsersDao.select(id);
    }

    @Override
    public int update(User user) {
        return showUsersDao.update(user);
    }
}
